#ifndef LOAN__H
#define LOAN__H

#include <string>
#include <limits.h>
#include "book.h"
#include "user.h"

class loan
{
	private:
		int id;
		int UserID;
		int BookID;
		std::string begin;
		std::string end;
		bool returned;
	public:
		loan(int bookID,int userID,std::string begin);
		int GetID() { return id; }
		int GetUserID() { return UserID; }
		int GetBookID() { return BookID; }
		std::string GetBeginDate() { return begin; }
		std::string GetEndDate() { return end; }
		bool IsReturned() { return returned; }
		void SetReturned(bool returned) { this->returned=returned; }
};

#endif
